package mest.service.Modeling.Impl;

import mest.dao.Modeling.ICustomerFileDao;
import mest.entity.customer_file;
import mest.entity.customer_type;
import mest.service.Modeling.ICustomerFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 15:42
 */

@Service
public class CustomerFileServiceImpl implements ICustomerFileService {

    @Resource
    private ICustomerFileDao icfd;

    @Override
    public int insertCustomerFile(customer_file ct)   {
        try {
            return icfd.insertCustomerFile(ct);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return icfd.selectCount();
    }

    @Override
    public List<customer_file> findCustomerFilePage(int index, int pageSize) {
        return icfd.findCustomerFilePage((index-1)*pageSize,pageSize);
    }
}
